package com.linked.store.thing.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author :dbq
 * @date : 2023/3/17 10:43
 * @description : desc
 */
@Data
@TableName("store_thing_image")
public class ThingImagesPO {

    @TableId(value = "thing_image_id", type = IdType.ASSIGN_UUID)
    private String thingImageId;
    @TableField("thing_id")
    private String thingId;
    @TableField("image_name")
    private String imageName;
    @TableField("image_url")
    private String imageUrl;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField("data_status")
    private Integer dataStatus;

}
